// 获取角色列表
export interface code {
  code: number
  message: string
  ok: boolean
}
export interface userList extends code {
  data: userListData
}
export interface userListData {
  records: recordsArray[]
  total: number
  size: number
  current: number
  orders: any[]
  optimizeCountSql: boolean
  hitCount: boolean
  countId?: any
  maxLimit?: any
  searchCount: boolean
  pages: number
}
export interface recordsArray {
  id?: number
  createTime?: string
  updateTime?: string
  roleName: string
  remark?: any
}
export interface succCode extends code {
  data?: userList
}
// 权限
export interface userMenu extends code {
  data: userMenuData[]
}
export interface Children {
  id: number
  createTime: string
  updateTime: string
  pid: number
  name: string
  code: string
  toCode: string
  type: number
  status?: any
  level: number
  children: any[]
  select: boolean
}

export interface userMenuData {
  id: number
  createTime: string
  updateTime: string
  pid: number
  name: string
  code?: any
  toCode?: any
  type: number
  status?: any
  level: number
  children: Children[]
  select: boolean
}
